/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package validators;

/**
 *
 * @author arruda
 */
public class ValidadorCampoVazio extends Validator{

    @Override
    public boolean validate(Object fieldValue, Object dependence) throws ValidatorError {
        String value = (String)fieldValue;
        if(value.isEmpty()){
            throw new ValidatorError("Campo Vazio");
        }
        return true;
    }

    
}
